﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Model.Queries
{
    [Serializable()]    
    public class MotorPolicyQuery : PolicyQuery
    {
        public override Type EntityType
        {
            get
            {
                return typeof(MotorPolicy);
            }
        }

        private string _plateNo;

        public string PlateNo
        {
            get { return _plateNo; }
            set 
            { 
                _plateNo = value;
                this.Add<MotorPolicy>(x => x.PlateNo, Lib.Query.CriteriaOperator.Like, value);
            }
        }
    }
}
